package schoolDemo3;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class App3_3 {
    public static void main(String[] args) {
        BufferedReader buf;
        String[] str=new String[10];
        buf=new BufferedReader(new InputStreamReader(System.in));
        for (int element=0;element<10;element++){
            System.out.println("请输入文字：");
            try {
                str[element] = buf.readLine();
            }
            catch (Exception e){
                System.out.println("输入异常！");
            }
        }
        System.out.println();
    }
}
